﻿using BW.MesProject.BasicData.Domain.基础;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.BasicData.Infrastructure
{
    public interface IWorkShopServices
    {
        /// <summary>
        /// 添加车间
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> AddWorkShop(Workshopmanagementmodel model);
        /// <summary>
        /// 获取所有车间
        /// </summary>
        /// <returns></returns>
        ApiPaging<List<Workshopmanagementmodel>> GetWorkShop(string? shopcode, string? shopname,int pageindex,int pagesize);
        /// <summary>
        /// 更新车间
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateWorkShop(Workshopmanagementmodel model);
        //根据id删除车间
        ApiResult<int> DeleteWorkShop(long id);
        //根据id来获取所有数据
        ApiResult<List<Workshopmanagementmodel>> GetShop(long id);
        //获取所有车间
        ApiResult<List<Workshopmanagementmodel>> GetAllShop();

    }
}
